package com.solver.service.impl;

import com.solver.entity.Field;
import com.solver.mapper.FieldMapper;
import com.solver.service.FieldService;
import com.solver.vo.QuestionItemVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FieldServiceImpl implements FieldService {
    @Autowired
    FieldMapper fieldMapper;

    /**
     * 条件查询
     * @param field
     * @return
     */
    @Override
    public List<Field> list(Field field) {
        List<Field> list = fieldMapper.list(field);
        return list;
    }

    @Override
    public List<QuestionItemVO> getQuestionItemById(Long id) {
        return fieldMapper.getQuestionItemById(id);
    }
}
